using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class follow_upMap : EntityTypeConfiguration<follow_up>
    {
        public follow_upMap()
        {
            // Primary Key
            this.HasKey(t => t.follow_up_id);

            // Properties
            this.Property(t => t.patient_id)
                .IsRequired()
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            this.Property(t => t.update_by)
                .HasMaxLength(20);

            this.Property(t => t.cardiogram_miocardial_infarction)
                .HasMaxLength(1);

            this.Property(t => t.cardiogram_left_fat)
                .HasMaxLength(1);

            this.Property(t => t.cardiogram_quiver)
                .HasMaxLength(1);

            this.Property(t => t.cardiogram_st_t_change)
                .HasMaxLength(1);

            this.Property(t => t.follow_up_type)
                .HasMaxLength(20);

            this.Property(t => t.symptom_giddy)
                .HasMaxLength(1);

            this.Property(t => t.symptom_headache)
                .HasMaxLength(1);

            this.Property(t => t.symptom_dysphoria)
                .HasMaxLength(1);

            this.Property(t => t.symptom_paly)
                .HasMaxLength(1);

            this.Property(t => t.symptom_eye_fuzzy)
                .HasMaxLength(1);

            this.Property(t => t.symptom_tinnitus)
                .HasMaxLength(1);

            this.Property(t => t.symptom_leg_weak)
                .HasMaxLength(1);

            this.Property(t => t.symptom_heartthrob)
                .HasMaxLength(1);

            this.Property(t => t.symptom_leg_numb)
                .HasMaxLength(1);

            this.Property(t => t.symptom_other)
                .HasMaxLength(80);

            this.Property(t => t.syndrome_cerebral_apoplexy)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_brain_blood)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_tia)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_tia_date)
                .HasMaxLength(4);

            this.Property(t => t.syndrome_myocardial_infaction)
                .HasMaxLength(10);

            this.Property(t => t.syndrome_myocardial_infaction_date)
                .HasMaxLength(4);

            this.Property(t => t.syndrome_angina)
                .HasMaxLength(1);

            this.Property(t => t.Syndrome_CAG_Year)
                .HasMaxLength(50);

            this.Property(t => t.Syndrome_CAG_Month)
                .HasMaxLength(2);

            this.Property(t => t.Syndrome_CAD)
                .HasMaxLength(10);

            this.Property(t => t.syndrome_heart_failure)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_ht_kidney)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_kidney_failure)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_CABG)
                .HasMaxLength(10);

            this.Property(t => t.syndrome_CABG_date)
                .HasMaxLength(4);

            this.Property(t => t.syndrome_PCI)
                .HasMaxLength(10);

            this.Property(t => t.syndrome_PCI_date)
                .HasMaxLength(4);

            this.Property(t => t.Syndrome_Chronic_pulmonary_disease)
                .HasMaxLength(1);

            this.Property(t => t.Syndrome_Cerebral_vascular_disease)
                .HasMaxLength(1);

            this.Property(t => t.Syndrome_Cerebral_vascular_disease_date)
                .HasMaxLength(4);

            this.Property(t => t.Syndrome_Cerebral_vascular_Yes)
                .HasMaxLength(10);

            this.Property(t => t.Syndrome_Dialysis_therapy)
                .HasMaxLength(1);

            this.Property(t => t.PeripheralVascularDisease)
                .HasMaxLength(1);

            this.Property(t => t.Syndrome_Cerebral_A)
                .HasMaxLength(10);

            this.Property(t => t.Syndrome_Cerebral_B)
                .HasMaxLength(10);

            this.Property(t => t.Syndrome_Cerebral_C)
                .HasMaxLength(10);

            this.Property(t => t.Syndrome_Stroke)
                .HasMaxLength(1);

            this.Property(t => t.Syndrome_Stroke_date)
                .HasMaxLength(4);

            this.Property(t => t.Syndrome_Chronic_kidney_disease)
                .HasMaxLength(1);

            this.Property(t => t.Syndrome_Chronic_kidney_disease_date)
                .HasMaxLength(4);

            this.Property(t => t.Syndrome_Cerebral_D)
                .HasMaxLength(10);

            this.Property(t => t.syndrome_aneurism)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_artery_disease)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_bleeding)
                .HasMaxLength(1);

            this.Property(t => t.syndrome_dropsy)
                .HasMaxLength(1);

            this.Property(t => t.smoke_date)
                .HasMaxLength(4);

            this.Property(t => t.Peptic_ulcer)
                .HasMaxLength(10);

            this.Property(t => t.Cardiac_insufficiency)
                .HasMaxLength(10);

            this.Property(t => t.Other_importent_disease_des)
                .HasMaxLength(200);

            this.Property(t => t.salt_limit)
                .HasMaxLength(1);

            this.Property(t => t.fat_limit)
                .HasMaxLength(1);

            this.Property(t => t.non_drug_therapy_salt_limit)
                .HasMaxLength(1);

            this.Property(t => t.non_drug_therapy_fat_limit)
                .HasMaxLength(1);

            this.Property(t => t.non_drug_therapy_exercise)
                .HasMaxLength(1);

            this.Property(t => t.non_drug_therapy_nosmoke)
                .HasMaxLength(1);

            this.Property(t => t.non_drug_therapy_drink_limit)
                .HasMaxLength(1);

            this.Property(t => t.no_rule_drug_reason_economic)
                .HasMaxLength(1);

            this.Property(t => t.no_rule_drug_reason_forget)
                .HasMaxLength(1);

            this.Property(t => t.no_rule_drug_reason_reaction)
                .HasMaxLength(1);

            this.Property(t => t.no_rule_drug_reason_distribution)
                .HasMaxLength(1);

            this.Property(t => t.no_rule_drug_reason_noneed)
                .HasMaxLength(1);

            this.Property(t => t.no_rule_drug_reason_other)
                .HasMaxLength(1);

            this.Property(t => t.NO_RULE_DRUG_REASON_OTHER_DESC)
                .HasMaxLength(100);

            this.Property(t => t.ht_awareness)
                .HasMaxLength(100);

            this.Property(t => t.inpatient_last_year_flag)
                .HasMaxLength(1);

            this.Property(t => t.emergency_flag)
                .HasMaxLength(1);

            this.Property(t => t.isBmi)
                .HasMaxLength(1);

            this.Property(t => t.bmi_date)
                .HasMaxLength(4);

            this.Property(t => t.is_bmi_normal)
                .HasMaxLength(1);

            this.Property(t => t.uric_protein)
                .HasMaxLength(50);

            this.Property(t => t.cardiogram_link)
                .HasMaxLength(100);

            this.Property(t => t.is_bp_aim)
                .HasMaxLength(1);

            this.Property(t => t.is_belly_aim)
                .HasMaxLength(1);

            this.Property(t => t.is_hdl_c_aim)
                .HasMaxLength(1);

            this.Property(t => t.is_ldl_c_aim)
                .HasMaxLength(1);

            this.Property(t => t.is_tg_3_aim)
                .HasMaxLength(1);

            this.Property(t => t.is_total_cholesterin_aim)
                .HasMaxLength(1);

            this.Property(t => t.is_smoke_aim)
                .HasMaxLength(1);

            this.Property(t => t.is_drug_complaince)
                .HasMaxLength(1);

            this.Property(t => t.is_transfer)
                .HasMaxLength(1);

            this.Property(t => t.drug_compliance)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_forget)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_stop)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_decrease)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_increase)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_change)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_frequency)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_dosage)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_other)
                .HasMaxLength(1);

            this.Property(t => t.drug_uncompliance_other_desc)
                .HasMaxLength(100);

            this.Property(t => t.need_transfer_reason_1)
                .HasMaxLength(1);

            this.Property(t => t.need_transfer_reason_2)
                .HasMaxLength(1);

            this.Property(t => t.need_transfer_reason_3)
                .HasMaxLength(1);

            this.Property(t => t.need_transfer_reason_4)
                .HasMaxLength(1);

            this.Property(t => t.need_transfer_reason_5)
                .HasMaxLength(1);

            this.Property(t => t.need_transfer_reason_6)
                .HasMaxLength(1);

            this.Property(t => t.need_transfer_reason_other)
                .HasMaxLength(1);

            this.Property(t => t.need_transfer_reason_other_desc)
                .HasMaxLength(100);

            this.Property(t => t.can_not_transfer_1)
                .HasMaxLength(1);

            this.Property(t => t.can_not_transfer_2)
                .HasMaxLength(1);

            this.Property(t => t.can_not_transfer_3)
                .HasMaxLength(1);

            this.Property(t => t.can_not_transfer_other)
                .HasMaxLength(1);

            this.Property(t => t.can_not_transfer_other_desc)
                .HasMaxLength(100);

            this.Property(t => t.chd_risk)
                .HasMaxLength(50);

            this.Property(t => t.conclusion)
                .HasMaxLength(500);

            this.Property(t => t.MedicationAdherence)
                .HasMaxLength(50);

            this.Property(t => t.BloodPressure)
                .HasMaxLength(50);

            this.Property(t => t.GlycemicControl)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("follow_up");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_date).HasColumnName("follow_up_date");
            this.Property(t => t.follow_up_schedule_id).HasColumnName("follow_up_schedule_id");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.update_time).HasColumnName("update_time");
            this.Property(t => t.update_by).HasColumnName("update_by");
            this.Property(t => t.follow_up_sequence).HasColumnName("follow_up_sequence");
            this.Property(t => t.follow_up_flag).HasColumnName("follow_up_flag");
            this.Property(t => t.height).HasColumnName("height");
            this.Property(t => t.weight).HasColumnName("weight");
            this.Property(t => t.pulse).HasColumnName("pulse");
            this.Property(t => t.heart_ratio).HasColumnName("heart_ratio");
            this.Property(t => t.blood_sugar).HasColumnName("blood_sugar");
            this.Property(t => t.blood_fat_lipoprotein).HasColumnName("blood_fat_lipoprotein");
            this.Property(t => t.blood_tg_3).HasColumnName("blood_tg_3");
            this.Property(t => t.blood_rbc).HasColumnName("blood_rbc");
            this.Property(t => t.blood_hb).HasColumnName("blood_hb");
            this.Property(t => t.blood_wbc).HasColumnName("blood_wbc");
            this.Property(t => t.blood_plt).HasColumnName("blood_plt");
            this.Property(t => t.uric_acid).HasColumnName("uric_acid");
            this.Property(t => t.uric_nitrogen).HasColumnName("uric_nitrogen");
            this.Property(t => t.cardiogram_miocardial_infarction).HasColumnName("cardiogram_miocardial_infarction");
            this.Property(t => t.cardiogram_left_fat).HasColumnName("cardiogram_left_fat");
            this.Property(t => t.cardiogram_quiver).HasColumnName("cardiogram_quiver");
            this.Property(t => t.cardiogram_st_t_change).HasColumnName("cardiogram_st_t_change");
            this.Property(t => t.follow_up_type).HasColumnName("follow_up_type");
            this.Property(t => t.symptom_giddy).HasColumnName("symptom_giddy");
            this.Property(t => t.symptom_headache).HasColumnName("symptom_headache");
            this.Property(t => t.symptom_dysphoria).HasColumnName("symptom_dysphoria");
            this.Property(t => t.symptom_paly).HasColumnName("symptom_paly");
            this.Property(t => t.symptom_eye_fuzzy).HasColumnName("symptom_eye_fuzzy");
            this.Property(t => t.symptom_tinnitus).HasColumnName("symptom_tinnitus");
            this.Property(t => t.symptom_leg_weak).HasColumnName("symptom_leg_weak");
            this.Property(t => t.symptom_heartthrob).HasColumnName("symptom_heartthrob");
            this.Property(t => t.symptom_leg_numb).HasColumnName("symptom_leg_numb");
            this.Property(t => t.symptom_other).HasColumnName("symptom_other");
            this.Property(t => t.syndrome_cerebral_apoplexy).HasColumnName("syndrome_cerebral_apoplexy");
            this.Property(t => t.syndrome_brain_blood).HasColumnName("syndrome_brain_blood");
            this.Property(t => t.syndrome_tia).HasColumnName("syndrome_tia");
            this.Property(t => t.syndrome_tia_date).HasColumnName("syndrome_tia_date");
            this.Property(t => t.syndrome_myocardial_infaction).HasColumnName("syndrome_myocardial_infaction");
            this.Property(t => t.syndrome_myocardial_infaction_date).HasColumnName("syndrome_myocardial_infaction_date");
            this.Property(t => t.syndrome_angina).HasColumnName("syndrome_angina");
            this.Property(t => t.Syndrome_CAG_Year).HasColumnName("Syndrome_CAG_Year");
            this.Property(t => t.Syndrome_CAG_Month).HasColumnName("Syndrome_CAG_Month");
            this.Property(t => t.Syndrome_CAD).HasColumnName("Syndrome_CAD");
            this.Property(t => t.syndrome_heart_failure).HasColumnName("syndrome_heart_failure");
            this.Property(t => t.syndrome_heart_failure_date).HasColumnName("syndrome_heart_failure_date");
            this.Property(t => t.syndrome_ht_kidney).HasColumnName("syndrome_ht_kidney");
            this.Property(t => t.syndrome_kidney_failure).HasColumnName("syndrome_kidney_failure");
            this.Property(t => t.syndrome_kidney_failure_date).HasColumnName("syndrome_kidney_failure_date");
            this.Property(t => t.syndrome_CABG).HasColumnName("syndrome_CABG");
            this.Property(t => t.syndrome_CABG_date).HasColumnName("syndrome_CABG_date");
            this.Property(t => t.syndrome_PCI).HasColumnName("syndrome_PCI");
            this.Property(t => t.syndrome_PCI_date).HasColumnName("syndrome_PCI_date");
            this.Property(t => t.Syndrome_Chronic_pulmonary_disease).HasColumnName("Syndrome_Chronic_pulmonary_disease");
            this.Property(t => t.Syndrome_Chronic_pulmonary_disease_date).HasColumnName("Syndrome_Chronic_pulmonary_disease_date");
            this.Property(t => t.Syndrome_Cerebral_vascular_disease).HasColumnName("Syndrome_Cerebral_vascular_disease");
            this.Property(t => t.Syndrome_Cerebral_vascular_disease_date).HasColumnName("Syndrome_Cerebral_vascular_disease_date");
            this.Property(t => t.Syndrome_Cerebral_vascular_Yes).HasColumnName("Syndrome_Cerebral_vascular_Yes");
            this.Property(t => t.Syndrome_Dialysis_therapy).HasColumnName("Syndrome_Dialysis_therapy");
            this.Property(t => t.Syndrome_Dialysis_therapy_date).HasColumnName("Syndrome_Dialysis_therapy_date");
            this.Property(t => t.PeripheralVascularDisease).HasColumnName("PeripheralVascularDisease");
            this.Property(t => t.Syndrome_Cerebral_A).HasColumnName("Syndrome_Cerebral_A");
            this.Property(t => t.Syndrome_Cerebral_B).HasColumnName("Syndrome_Cerebral_B");
            this.Property(t => t.Syndrome_Cerebral_C).HasColumnName("Syndrome_Cerebral_C");
            this.Property(t => t.Syndrome_Stroke).HasColumnName("Syndrome_Stroke");
            this.Property(t => t.Syndrome_Stroke_date).HasColumnName("Syndrome_Stroke_date");
            this.Property(t => t.Syndrome_Chronic_kidney_disease).HasColumnName("Syndrome_Chronic_kidney_disease");
            this.Property(t => t.Syndrome_Chronic_kidney_disease_date).HasColumnName("Syndrome_Chronic_kidney_disease_date");
            this.Property(t => t.Syndrome_Cerebral_D).HasColumnName("Syndrome_Cerebral_D");
            this.Property(t => t.syndrome_aneurism).HasColumnName("syndrome_aneurism");
            this.Property(t => t.syndrome_artery_disease).HasColumnName("syndrome_artery_disease");
            this.Property(t => t.syndrome_bleeding).HasColumnName("syndrome_bleeding");
            this.Property(t => t.syndrome_dropsy).HasColumnName("syndrome_dropsy");
            this.Property(t => t.smoke_status).HasColumnName("smoke_status");
            this.Property(t => t.smoke_date).HasColumnName("smoke_date");
            this.Property(t => t.smoke_number).HasColumnName("smoke_number");
            this.Property(t => t.smoking_qiut_year).HasColumnName("smoking_qiut_year");
            this.Property(t => t.drink_status).HasColumnName("drink_status");
            this.Property(t => t.drink_number).HasColumnName("drink_number");
            this.Property(t => t.Peptic_ulcer).HasColumnName("Peptic_ulcer");
            this.Property(t => t.Cardiac_insufficiency).HasColumnName("Cardiac_insufficiency");
            this.Property(t => t.Other_importent_disease_des).HasColumnName("Other_importent_disease_des");
            this.Property(t => t.exercise_status).HasColumnName("exercise_status");
            this.Property(t => t.exercise_number_week).HasColumnName("exercise_number_week");
            this.Property(t => t.exercise_minutes).HasColumnName("exercise_minutes");
            this.Property(t => t.salt_limit).HasColumnName("salt_limit");
            this.Property(t => t.fat_limit).HasColumnName("fat_limit");
            this.Property(t => t.non_drug_therapy_salt_limit).HasColumnName("non_drug_therapy_salt_limit");
            this.Property(t => t.non_drug_therapy_fat_limit).HasColumnName("non_drug_therapy_fat_limit");
            this.Property(t => t.non_drug_therapy_exercise).HasColumnName("non_drug_therapy_exercise");
            this.Property(t => t.non_drug_therapy_nosmoke).HasColumnName("non_drug_therapy_nosmoke");
            this.Property(t => t.non_drug_therapy_drink_limit).HasColumnName("non_drug_therapy_drink_limit");
            this.Property(t => t.drug_rule_status).HasColumnName("drug_rule_status");
            this.Property(t => t.no_rule_drug_reason_economic).HasColumnName("no_rule_drug_reason_economic");
            this.Property(t => t.no_rule_drug_reason_forget).HasColumnName("no_rule_drug_reason_forget");
            this.Property(t => t.no_rule_drug_reason_reaction).HasColumnName("no_rule_drug_reason_reaction");
            this.Property(t => t.no_rule_drug_reason_distribution).HasColumnName("no_rule_drug_reason_distribution");
            this.Property(t => t.no_rule_drug_reason_noneed).HasColumnName("no_rule_drug_reason_noneed");
            this.Property(t => t.no_rule_drug_reason_other).HasColumnName("no_rule_drug_reason_other");
            this.Property(t => t.NO_RULE_DRUG_REASON_OTHER_DESC).HasColumnName("NO_RULE_DRUG_REASON_OTHER_DESC");
            this.Property(t => t.bp_control_status).HasColumnName("bp_control_status");
            this.Property(t => t.ht_awareness).HasColumnName("ht_awareness");
            this.Property(t => t.dmap_satisfaction).HasColumnName("dmap_satisfaction");
            this.Property(t => t.doctor_instruction).HasColumnName("doctor_instruction");
            this.Property(t => t.inpatient_last_year_flag).HasColumnName("inpatient_last_year_flag");
            this.Property(t => t.times_inpatient).HasColumnName("times_inpatient");
            this.Property(t => t.days_inpatient).HasColumnName("days_inpatient");
            this.Property(t => t.emergency_flag).HasColumnName("emergency_flag");
            this.Property(t => t.times_emergency).HasColumnName("times_emergency");
            this.Property(t => t.times_outpatient).HasColumnName("times_outpatient");
            this.Property(t => t.self_management_capability).HasColumnName("self_management_capability");
            this.Property(t => t.bmi).HasColumnName("bmi");
            this.Property(t => t.isBmi).HasColumnName("isBmi");
            this.Property(t => t.bmi_date).HasColumnName("bmi_date");
            this.Property(t => t.is_bmi_normal).HasColumnName("is_bmi_normal");
            this.Property(t => t.belly_perimeter).HasColumnName("belly_perimeter");
            this.Property(t => t.sbp_final).HasColumnName("sbp_final");
            this.Property(t => t.dbp_final).HasColumnName("dbp_final");
            this.Property(t => t.sbp_1).HasColumnName("sbp_1");
            this.Property(t => t.dbp_1).HasColumnName("dbp_1");
            this.Property(t => t.sbp_2).HasColumnName("sbp_2");
            this.Property(t => t.dbp_2).HasColumnName("dbp_2");
            this.Property(t => t.sbp_3).HasColumnName("sbp_3");
            this.Property(t => t.dbp_3).HasColumnName("dbp_3");
            this.Property(t => t.blood_k).HasColumnName("blood_k");
            this.Property(t => t.kidney_cr).HasColumnName("kidney_cr");
            this.Property(t => t.kidney_bun).HasColumnName("kidney_bun");
            this.Property(t => t.uric_protein).HasColumnName("uric_protein");
            this.Property(t => t.uric_rc).HasColumnName("uric_rc");
            this.Property(t => t.uric_wc).HasColumnName("uric_wc");
            this.Property(t => t.hdl_c).HasColumnName("hdl_c");
            this.Property(t => t.ldl_c).HasColumnName("ldl_c");
            this.Property(t => t.total_cholesterin).HasColumnName("total_cholesterin");
            this.Property(t => t.cardiogram_link).HasColumnName("cardiogram_link");
            this.Property(t => t.is_bp_aim).HasColumnName("is_bp_aim");
            this.Property(t => t.is_belly_aim).HasColumnName("is_belly_aim");
            this.Property(t => t.is_hdl_c_aim).HasColumnName("is_hdl_c_aim");
            this.Property(t => t.is_ldl_c_aim).HasColumnName("is_ldl_c_aim");
            this.Property(t => t.is_tg_3_aim).HasColumnName("is_tg_3_aim");
            this.Property(t => t.is_total_cholesterin_aim).HasColumnName("is_total_cholesterin_aim");
            this.Property(t => t.is_smoke_aim).HasColumnName("is_smoke_aim");
            this.Property(t => t.is_drug_complaince).HasColumnName("is_drug_complaince");
            this.Property(t => t.is_transfer).HasColumnName("is_transfer");
            this.Property(t => t.bp_level_id).HasColumnName("bp_level_id");
            this.Property(t => t.drug_compliance).HasColumnName("drug_compliance");
            this.Property(t => t.drug_uncompliance_forget).HasColumnName("drug_uncompliance_forget");
            this.Property(t => t.drug_uncompliance_stop).HasColumnName("drug_uncompliance_stop");
            this.Property(t => t.drug_uncompliance_decrease).HasColumnName("drug_uncompliance_decrease");
            this.Property(t => t.drug_uncompliance_increase).HasColumnName("drug_uncompliance_increase");
            this.Property(t => t.drug_uncompliance_change).HasColumnName("drug_uncompliance_change");
            this.Property(t => t.drug_uncompliance_frequency).HasColumnName("drug_uncompliance_frequency");
            this.Property(t => t.drug_uncompliance_dosage).HasColumnName("drug_uncompliance_dosage");
            this.Property(t => t.drug_uncompliance_other).HasColumnName("drug_uncompliance_other");
            this.Property(t => t.drug_uncompliance_other_desc).HasColumnName("drug_uncompliance_other_desc");
            this.Property(t => t.is_need_transfer).HasColumnName("is_need_transfer");
            this.Property(t => t.need_transfer_reason_1).HasColumnName("need_transfer_reason_1");
            this.Property(t => t.need_transfer_reason_2).HasColumnName("need_transfer_reason_2");
            this.Property(t => t.need_transfer_reason_3).HasColumnName("need_transfer_reason_3");
            this.Property(t => t.need_transfer_reason_4).HasColumnName("need_transfer_reason_4");
            this.Property(t => t.need_transfer_reason_5).HasColumnName("need_transfer_reason_5");
            this.Property(t => t.need_transfer_reason_6).HasColumnName("need_transfer_reason_6");
            this.Property(t => t.need_transfer_reason_other).HasColumnName("need_transfer_reason_other");
            this.Property(t => t.need_transfer_reason_other_desc).HasColumnName("need_transfer_reason_other_desc");
            this.Property(t => t.can_not_transfer_1).HasColumnName("can_not_transfer_1");
            this.Property(t => t.can_not_transfer_2).HasColumnName("can_not_transfer_2");
            this.Property(t => t.can_not_transfer_3).HasColumnName("can_not_transfer_3");
            this.Property(t => t.can_not_transfer_other).HasColumnName("can_not_transfer_other");
            this.Property(t => t.can_not_transfer_other_desc).HasColumnName("can_not_transfer_other_desc");
            this.Property(t => t.chd_risk).HasColumnName("chd_risk");
            this.Property(t => t.conclusion).HasColumnName("conclusion");
            this.Property(t => t.MedicationAdherence).HasColumnName("MedicationAdherence");
            this.Property(t => t.BloodPressure).HasColumnName("BloodPressure");
            this.Property(t => t.GlycemicControl).HasColumnName("GlycemicControl");

            // Relationships
            this.HasOptional(t => t.follow_up_schedule)
                .WithMany(t => t.follow_up)
                .HasForeignKey(d => d.follow_up_schedule_id);

        }
    }
}
